import request from '@/utils/request'
import FormatPackage from '@/utils/response-format-package'

export function getPlayerList(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/list',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function getCustomerDetail(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/queryDetail',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function changePlayerStatus(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/updateStatus',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function setOwerGroup(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/isGroupOwner',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
